<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="cn.lily.inst.web.frames.FrameConfig" %>
<%@ page import="cn.lily.web.util.context.WebContext" %>
<%@ page import="cn.lily.esb.context.AuthEntity" %>
<%
	boolean isLog    = false;
    String  skinName = "";
    String contextPath="";
    String homepage = "" ;
    AuthEntity authEntity = (AuthEntity)session.getAttribute(WebContext.LOG_AUTH_CONTEXT);
	
	if (authEntity != null)
	{			
	     	skinName    = authEntity.getSkinName();
	     	contextPath = authEntity.getContextPath();
	     	isLog =true;	        
	     	if(!"".equals(authEntity.getWelcomePage()) && authEntity.getWelcomePage()!=null){
	     		homepage = contextPath + authEntity.getWelcomePage() ;
	     	}
	}
	FrameConfig.setContextPath(contextPath);
	if (!isLog)
		response.getWriter().println("<script language=\"javascript\">alert ('操作员超时，请重新签到！'); if(top){ top.location.href='"+request.getContextPath()+"/index.jsp'; } else { location.href = '"+request.getContextPath()+"/index.jsp';} </script>");
	   
	
	String pageName ="left.jsp";
%>
<html>
<head>
	<title><%=FrameConfig.getAppName()%></title>
	<style type="text/css">
		body {margin: 0px;}
		.navPoint { COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt} 
	</style> 
	<script language="javascript">
		window.contextPath="<%=contextPath%>";
				
		function switchSysBar() 
		{
			
			if (document.all("frmTitle").style.display=="") {
				document.all("img1").src = "<%=FrameConfig.getFramePath("main_55_1.gif")%>";
				document.all("frmTitle").style.display = "none"
			} else {
				document.all("img1").src = "<%=FrameConfig.getFramePath("main_55.gif")%>";
				document.all("frmTitle").style.display = ""
			}
		}
		function pageInit()
		{
			return;
			document.all("img1").src = "<%=FrameConfig.getFramePath("main_55_1.gif")%>";
			document.all("frmTitle").style.display = "none"
		}

</script>


</head>

<body style="overflow:hidden" onload="pageInit()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
  <tr>
    <td width="171" id="frmTitle" noWrap name="fmTitle" align="center" valign="top"><table width="171" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
      <tr>
        <td  background="<%=FrameConfig.getFramePath("main_61.gif")%>" style="width:6px;">&nbsp;</td>
        <td width="165"><iframe name="leftFrame" height="100%" width="165" src="<%=pageName %>" border="0" frameborder="0" scrolling="no"> 浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。</iframe></td>
      </tr>
    </table></td>
    <td width="6"  style="width:6px;"valign="middle" background="<%=FrameConfig.getFramePath("main_61.gif")%>" onclick="switchSysBar()">
    	<SPAN class="navPoint" id="switchPoint" title="关闭/打开左栏" >
    		<img src="<%=FrameConfig.getFramePath("main_55.gif")%>" name="img1" width="6" height="40" id="img1" >
    	</SPAN> 
    </td>
    <td width="100%" align="center" valign="top"><iframe name="workFrame" height="100%" width="100%" border="0" frameborder="0" scrolling="auto" src="<%=homepage %>"> 浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。</iframe></td>
  </tr>
</table>
</body>
</html>

